<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>导入资源</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<style type="text/css">
.main{
margin:5px 100px;}
</style>
</head>
<body>
<div class="main">
<h2>带导入的资源</h2>
<table class="table">
 <tr><th>文件列表</th></tr>
<?php
require_once("function.php");
$fileList=getFile();
foreach($fileList as $file)
{
	print "<tr><td>$file</td><tr>";
}
?>
<tr><td>
<input class='btn btn-default' type='button' value='一键导入' onclick='importResource()'>
</td></tr>
</table>
</div>
</body>
</html>

<script>
 function importResource(){
 if(confirm("一键导入，是否继续？")){
	 location.href="importResource.php";
 }
 }
</script>

